//
//  MoboViewController.h
//  Moboplayer
//
//  Created by lmx on 16/6/8.
//  Copyright © 2016年 lmx. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import "MoboPlayerProtocol.h"

#define HARD_DECODE 1
#define SOFT_DECODE 2

@interface MoboViewController : UIViewController

@property  (nonatomic,retain) NSString *FilePath;
@property  int  DecodeMode;            //harddecode or softdecode
@property (nonatomic,assign) id<MoboPlayerProtocol> moboPlayer;





/**
 *  @description
 *      init the movie player with path and parameters
 *      it will call non-system player
 *  @param
 *      path the media file path include local file or network file
 *      parameters set the MoboParameterMinBufferedDuration other parameters, see the examples
 *  @return
 *      a MoboViewController instance
 */
-(id) hardMovieViewControllerWithContentPath: (NSString *) path
                                  parameters: (NSDictionary *) parameters;


-(id) softMovieViewControllerWithContentPath: (NSString *) path
                                   parameters: (NSDictionary *) parameters;
-(void) closecurrentfile;
-(NSUInteger)supportedInterfaceOrientations;
//-(UIImage *) generateThumbnail:(NSString *)file atPath:(NSString *)pngSavePath atTime:(int)time withWidth:(int)width height:(int)height;
@end
